package health.lm.com.find.presenter;

import health.lm.com.component_base.base.mvp.contract.XPresent;
import health.lm.com.find.entity.HActivityEntity;
import health.lm.com.find.fragment.HActivityFragment;
import health.lm.com.find.model.ExperienceModel;
import health.lm.com.network.callback.SimpleCallBack;

/**
 * @author GQI
 * @description: 链活动
 * @date :2019-08-12 15:16
 */
public class HActivityPresenter extends XPresent<HActivityFragment> {
    public void getColumn(){
        ExperienceModel.getInstance().hActivity(new SimpleCallBack<HActivityEntity>() {
            @Override
            public void onSuccess(HActivityEntity hActivityEntity) {
                if (hasV()){
                    getV().getColumn(hActivityEntity.getCategory_list());
                }
            }
        });
    }
}
